<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center communityService_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub communityService_fd0_0'>
					<view class='flex flex-wrap align-center communityService_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  communityService_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text class='communityService_fd0_0_c1_c0'>社区服务</text>
					</view>
					<view class='flex flex-wrap align-center justify-end communityService_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout communityService_flex_1">
				<view class='flex flex-direction flex-wrap align-stretch communityService_fd1_0' v-for="(item,index) in cateArr" :key="index">
					<view class='flex flex-wrap align-center justify-between communityService_fd1_0_c0'>
						<text class='communityService_fd1_0_c0_c0'>{{item.title}}</text>
						<image class='communityService_fd1_0_c0_c1' mode="aspectFit" :src='STATIC_URL+"92.png"'></image>
					</view>
					<view class='flex flex-wrap align-center communityService_fd1_0_c0' @tap.stop="handleJumpDiy" data-type="navigateTo"
					:data-url="`/pages/grzx/serviceInfomation/serviceInfomation?aid=${item.aid}`">
						<text class='communityService_fd1_0_c1_c0'>{{item.content}}</text>
					</view>
				</view>
				<!-- <view class='flex flex-direction flex-wrap align-stretch communityService_fd1_2'>
					<text class='communityService_fd1_0_c0_c0'>更多问题</text>
				</view> -->
			</view>
			<!---flex布局flex布局结束-->
		</view>
	</view>
</template>
<script>
	export default {
		components: {},


		data() {
			return {
				cateArr:[],
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {

		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			this.getArticleListByCate()
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			getArticleListByCate(){
				this.$api.post('/m6752/64219a95b6200',{
					category_id:2
				}).then(res=>{
					if(res.data.code == 1){
						this.cateArr = res.data.data.data
					}
				})
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #F8F8F8;
		background-size: 100% auto;
	}

	.communityService_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.communityService_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
		line-height: 36rpx;
	}

	.communityService_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: #333;
	}

	.communityService_fd0_0_c0 {
		width: 120rpx;
	}

	.communityService_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.communityService_flex_1 {
		padding: 24rpx 24rpx 0rpx 24rpx;
	}

	.communityService_fd1_2 {
		background: var(--benbenbgColor1);
		margin: 0rpx 0rpx 24rpx 0rpx;
		padding: 32rpx 24rpx 32rpx 24rpx;
		border-radius: 16rpx;
		background-size: 100% auto;
	}

	.communityService_fd1_0_c2 {
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.communityService_fd1_0_c1_c0 {
		color: #333333;
		font-size: 28rpx;
		font-weight: 400;
	}

	.communityService_fd1_0_c0_c1 {
		width: 14rpx;
		height: 26rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.communityService_fd1_0_c0_c0 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 500;
	}

	.communityService_fd1_0_c0 {
		border-bottom: 1px solid #eee;
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.communityService_fd1_0 {
		background: var(--benbenbgColor1);
		margin: 0rpx 0rpx 24rpx 0rpx;
		padding: 0rpx 24rpx 0rpx 24rpx;
		border-radius: 16rpx;
		background-size: 100% auto;
	}
</style>